package wetalk.software.bupt.com.wetalk.model.po;

/**
 * Created by Administrator on 2018/1/11 0011.
 */

public class SearchMessageRecord {
    private String avatar;
    private String userName;
    private String content;
    private long time;
    private String Targetid;
    private String Nick;
    private String count;

    public SearchMessageRecord(){

    }
    public SearchMessageRecord(String content, Long time){
        this.content = content;
        this.time = time;
    }
    public SearchMessageRecord(String avatar, String userName, String content, long time, String Targetid, String count){
        super();
        this.avatar = avatar;
        this.userName = userName;
        this.content = content;
        this.time = time;
        this.Targetid = Targetid;
        this.count = count;
    }
    public SearchMessageRecord(String avatar, String userName, String content, long time, String Targetid, String Nick, String count){

        this.avatar = avatar;
        this.userName = userName;
        this.content = content;
        this.time = time;
        this.Targetid = Targetid;
        this.Nick = Nick;
        this.count = count;
    }
    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getTargetid() {
        return Targetid;
    }

    public void setTargetid(String getTargetid) {
        this.Targetid = Targetid;
    }

    public String getNick() {
        return Nick;
    }

    public void setNick(String getNick) {
        this.Nick = Nick;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || !(o instanceof WeTalkRecent)) {
            return false;
        }
        return getUserName().equals(((WeTalkRecent) o).getUserName());
    }
}
